﻿<%@ Control Language="C#" Inherits="LTJ.Web.UI.datacontrol.ajaxuserauthlist" %>
<%
    int allcount = 0;
    foreach (System.Data.DataRow dr in maindt.Rows)
    {
%>
<table border="0" cellpadding="0" cellspacing="0" class="edtb">
    <tbody>
        <tr>
			<td colspan="2"><b class="zi2 f_14"><%=dr["menutitle"]%></b></td>
		</tr>
        <%
            foreach (System.Data.DataRow subdr in subdt.Select("parentid=" + dr["menuid"]))
            {
        %>
        <tr>
            <td><p class="zi2"><%=subdr["menutitle"]%>:</p></td>
            <td>
                <p class="zi2">
                    <input type="checkbox" name="auth_<%=allcount%>" value="Create" <%=GetChecked(2,"Create",subdr)%> disabled="true"/>增加
                    <input type="checkbox" name="auth_<%=allcount%>" value="Update" <%=GetChecked(2,"Update",subdr)%> disabled="true"/>修改
                    <input type="checkbox" name="auth_<%=allcount%>" value="Delete" <%=GetChecked(2,"Delete",subdr)%> disabled="true"/>删除
                    <input type="checkbox" name="auth_<%=allcount%>" value="Read" <%=GetChecked(2,"Read",subdr)%> disabled="true"/>查阅
                </p>
            </td>
        </tr>
        <%
            allcount++;
                }
            }
        %>
    </tbody>
</table>